package com.api.shopapi.service;

import com.api.shopapi.entity.VolunteerTeam;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface VolunteerTeamService {

    int insert(VolunteerTeam volunteerTeam);

    int delete(String volunteerTeamCode);


    int update(VolunteerTeam volunteerTeam);


    VolunteerTeam getByVolunteerTeamCode(String volunteerTeamCode);


    VolunteerTeam getByUserCode(String userCode);


    List<VolunteerTeam> listByCommandCenterCode(String commandCenterCode, int applyStatus);

    /**
     * 所有待志愿队伍
     * */
    PageInfo<VolunteerTeam> pageByCommandCenterCode(int pageIndex, int pageSize, String commandCenterCode,int applyStatus);

    /**
     * 待审核志愿队伍
     * */
    PageInfo<VolunteerTeam> pageByCommandCenterCodeApply(int pageIndex, int pageSize, String commandCenterCode);

    PageInfo<VolunteerTeam> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
